<?php

class Sgit_Form_Element_Select_Controller extends Sgit_Form_Element_Select
{
    
    public function init()
    {
        $controladores=new Application_Model_AclResources();
        $datacenter=new Application_Model_Datacenter();
        
        $where['parent IS NULL']='';
        $where['check_auth']=1;
        
        $opt =$controladores->getAssoc('resource','resource',$where);
    
        foreach($opt as $k => $v)
        {
            $a = explode(':',$v);
            $this->opciones[$k]=$a[0].' '.$datacenter->getNombreZona($a[1]);
        }

        

        
        $this->setLabel('Controlador');

    }
    

    
}
